package org.jeecg.modules.system.vo;

import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import org.jeecg.modules.system.entity.SysUser;
import org.jeecg.modules.system.entity.SysUserPosition;
import org.jeecg.modules.system.entity.SysUserRole;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @Description: 用户管理
 * @Author: jeecg-boot
 * @Date:   2019-08-04
 * @Version: V1.0
 */
@Data
public class SysUserPage {

	/**主键id*/
	private String id;
	/**物业公司ID*/
  	@Excel(name = "物业公司ID", width = 15)
	private Integer tenantId;

	 /**部门id*/
	@Excel(name = "登录账号", width = 15)
	private String departId;
	/**登录账号*/
  	@Excel(name = "登录账号", width = 15)
	private String username;
	/**真实姓名*/
  	@Excel(name = "真实姓名", width = 15)
	private String realname;
	/**密码*/
  	@Excel(name = "密码", width = 15)
	private String password;
	/**md5密码盐*/
  	@Excel(name = "md5密码盐", width = 15)
	private String salt;
	/**头像*/
  	@Excel(name = "头像", width = 15)
	private String avatar;
	/**生日*/
  	@Excel(name = "生日", width = 20, format = "yyyy-MM-dd HH:mm:ss")
  	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date birthday;
	/**性别（1：男 2：女）*/
  	@Excel(name = "性别（1：男 2：女）", width = 15)
	private Integer sex;
	/**电子邮件*/
  	@Excel(name = "电子邮件", width = 15)
	private String email;
	/**电话*/
  	@Excel(name = "电话", width = 15)
	private String phone;
	/**部门code*/
  	@Excel(name = "部门code", width = 15)
	private String orgCode;
	/**状态(1：正常  2：冻结 ）*/
  	@Excel(name = "状态(1：正常  2：冻结 ）", width = 15)
	private Integer status;
	/**删除状态（0，正常，1已删除）*/
  	@Excel(name = "删除状态（0，正常，1已删除）", width = 15)
	private String delFlag;
	/**同步工作流引擎1同步0不同步*/
  	@Excel(name = "同步工作流引擎1同步0不同步", width = 15)
	private String activitiSync;
	/**创建人*/
  	@Excel(name = "创建人", width = 15)
	private String createBy;
	/**创建时间*/
  	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
  	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date createTime;
	/**更新人*/
  	@Excel(name = "更新人", width = 15)
	private String updateBy;
	/**更新时间*/
  	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
  	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date updateTime;
  	@TableField(exist = false)
    private String[] receiveAttr;
	@ExcelCollection(name="用户岗位表")
	private List<SysUserPosition> sysUserPositionList;
	@ExcelCollection(name="用户角色表")
	private List<SysUserRole> sysUserRoleList;
	
}
